package entity

import (
	"github.com/jinzhu/gorm"
	"shqsoft.cn/pasnj/base"
)

//DGLSDKDR 用户
type DGLSDKDR struct {
	ID    int     `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	ACID  int     `gorm:"column:ACID;"`
	XH    string  `gorm:"column:XH;"`
	JRDM  string  `gorm:"column:JRDM;"`
	NBJGH string  `gorm:"column:NBJGH;"`
	KHMC  string  `gorm:"column:KHMC;"`
	SSGXH string  `gorm:"column:SSGXH;"`
	SSFH  string  `gorm:"column:SSFH;"`
	HYFL  string  `gorm:"column:HYFL;"`
	QYGM  string  `gorm:"column:QYGM;"`
	BZ    string  `gorm:"column:BZ;"`
	YWPZ  string  `gorm:"column:YWPZ;"`
	HTBH  string  `gorm:"column:HTBH;"`
	JJBH  string  `gorm:"column:JJBH;"`
	JJQSR string  `gorm:"column:JJQSR;"`
	JJDQR string  `gorm:"column:JJDQR;"`
	YE    float64 `gorm:"column:YE;"`
	MLLB  string  `gorm:"column:MLLB;"`
	DKZT  string  `gorm:"column:DKZT;"`
	QKBZ  string  `gorm:"column:QKBZ;"`
}

//TableName User用户表名
func (DGLSDKDR) TableName() string {
	return "T_COMP_LSDK_DTIP"
}

func DGLSDKDRAfterImport(tx *gorm.DB, params map[string]string) (err error) {
	tx.Exec("EXEC UP_COMP_LSDK")
	return nil
}

// DGLSDKDREF G
func DGLSDKDREF() base.EntityFunc {
	return func() interface{} {
		entity := DGLSDKDR{}
		return &entity
	}
}

//DGLSDKDRESF GJ
func DGLSDKDRESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []DGLSDKDR
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("DGLSDKDR", base.NewDefaultDao(DGLSDKDREF(), DGLSDKDRESF(), nil))
	base.SetAfterCallBack("DGLSDKDR", DGLSDKDRAfterImport)
}
